﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class BackManage_user_infor : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            DataBindTable();
        }
    }

    public void DataBindTable()
    {
        try
        {
            if (!object.Equals(Request.QueryString["User_Idint"], null))
            {
                int userId = Int32.Parse(Request.QueryString["User_Idint"].ToString());
                BLL.Business.UserBLL userBLL = new BLL.Business.UserBLL();
                DataSet ds = userBLL.SelectByID(userId);
                this.userInfor.DataSource = ds;
                this.userInfor.DataBind();
            }
        }
        catch (Exception ex)
        {
            Response.Write("<script>alert('" + ex.Message.ToString() + "')</script>");
        }
    }
}
